package utils;

import com.alibaba.fastjson.JSONObject;

public class ResponseData {
    //响应状态码
    private  int statusCode;
    //响应数据
    private JSONObject body;

    public ResponseData(int statusCode, JSONObject body) {
        this.statusCode = statusCode;
        this.body = body;
    }

    public ResponseData() {
    }

    public int getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(int statusCode) {
        this.statusCode = statusCode;
    }

    public JSONObject getBody() {
        return body;
    }

    public void setBody(JSONObject body) {
        this.body = body;
    }

    @Override
    public String toString() {
        return "ResponseData{" +
                "statusCode=" + statusCode +
                ", body=" + body +
                '}';
    }
}
